import type { RouteRecordRaw } from "vue-router";

export const authRoutes: RouteRecordRaw[] = [
  {
    path: "/auth",
    name: "AuthLayout",
    component: () => import("@/components/auth/index.vue"),
    meta: {
      title: "认证中心",
      layout: "auth", // 明确指定布局类型
      isBasic: true,
    },
    redirect: { name: "Login" },
    children: [
      {
        path: "/login",
        name: "Login",
        component: () => import("@/views/auth/login.vue"),
        meta: {
          title: "登录",
          isBasic: true,
        },
      },
      {
        path: "/register",
        name: "Register",
        component: () => import("@/views/auth/register.vue"),
        meta: {
          title: "注册",
          isBasic: true,
        },
      },
    ],
  },
];
